package com.atguigu.jxc.dao;

import com.atguigu.jxc.entity.PurchaseList;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface PurchaseListDao {
    void save(PurchaseList purchaseListVo);

    List<PurchaseList> getList(String purchaseNumber, Integer supplierId, Integer state, String sTime, String eTime);

    void deleteById(Integer purchaseListId);

    void updateState(@Param("purchaseListId") Integer purchaseListId);

    List<PurchaseList> getSaleDataByDay(String sTime, String eTime);

    List<PurchaseList> getSaleDataByMonth(String sTime, String eTime);
}
